<html>
<head><meta charset="utf-8"><title>mdbook generating near-empty file · wg-traits · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/index.html">wg-traits</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/mdbook.20generating.20near-empty.20file.html">mdbook generating near-empty file</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="214261252"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/mdbook%20generating%20near-empty%20file/near/214261252" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/mdbook.20generating.20near-empty.20file.html#214261252">(Oct 22 2020 at 23:52)</a>:</h4>
<p>Does anyone know why running <code>mdbook serve</code> in <code>book/</code> keeps generating a file named <code>src/coherence.md</code> with the content:</p>
<div class="codehilite" data-code-language="markdown"><pre><span></span><code><span class="gh"># Content</span>
</code></pre></div>

<p>?</p>



<a name="214261336"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/mdbook%20generating%20near-empty%20file/near/214261336" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/mdbook.20generating.20near-empty.20file.html#214261336">(Oct 22 2020 at 23:54)</a>:</h4>
<p>I delete the file, and then <code>git status</code> shows:</p>
<div class="codehilite"><pre><span></span><code>On branch notation-docs
Your branch is up to date with &#39;origin/notation-docs&#39;.

Changes not staged for commit:
  (use &quot;git add &lt;file&gt;...&quot; to update what will be committed)
  (use &quot;git restore &lt;file&gt;...&quot; to discard changes in working directory)
    modified:   book/book.toml

no changes added to commit (use &quot;git add&quot; and/or &quot;git commit -a&quot;)
</code></pre></div>


<p>Then I go into <code>/book</code> and run <code>mdbook build</code> and lo and behold, <code>git status</code> shows:</p>
<div class="codehilite"><pre><span></span><code>On branch notation-docs
Your branch is up to date with &#39;origin/notation-docs&#39;.

Changes not staged for commit:
  (use &quot;git add &lt;file&gt;...&quot; to update what will be committed)
  (use &quot;git restore &lt;file&gt;...&quot; to discard changes in working directory)
    modified:   book/book.toml

Untracked files:
  (use &quot;git add &lt;file&gt;...&quot; to include in what will be committed)
    book/src/coherence.md

no changes added to commit (use &quot;git add&quot; and/or &quot;git commit -a&quot;)
</code></pre></div>



<a name="214261340"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/mdbook%20generating%20near-empty%20file/near/214261340" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/mdbook.20generating.20near-empty.20file.html#214261340">(Oct 22 2020 at 23:54)</a>:</h4>
<p>Is it auto-generated or something?</p>



<a name="214261369"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/mdbook%20generating%20near-empty%20file/near/214261369" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/mdbook.20generating.20near-empty.20file.html#214261369">(Oct 22 2020 at 23:55)</a>:</h4>
<p>Aha, someone forgot to remove it from the summary</p>



<a name="214266740"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/mdbook%20generating%20near-empty%20file/near/214266740" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jack Huey <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/mdbook.20generating.20near-empty.20file.html#214266740">(Oct 23 2020 at 01:55)</a>:</h4>
<p>It's not autogenerated...</p>



<a name="214266742"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/mdbook%20generating%20near-empty%20file/near/214266742" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jack Huey <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/mdbook.20generating.20near-empty.20file.html#214266742">(Oct 23 2020 at 01:55)</a>:</h4>
<p>hmm</p>



<a name="214268116"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/mdbook%20generating%20near-empty%20file/near/214268116" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/mdbook.20generating.20near-empty.20file.html#214268116">(Oct 23 2020 at 02:30)</a>:</h4>
<p>Note to others: fixed; it was linking to the wrong page</p>



<a name="214280966"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/mdbook%20generating%20near-empty%20file/near/214280966" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lqd <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/mdbook.20generating.20near-empty.20file.html#214280966">(Oct 23 2020 at 07:20)</a>:</h4>
<p>(deleted)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>